.message-panel-container {
  width: 100%;
  height: calc(100% - 90px);
  display: flex;
  flex-direction: row;
  padding: 0 40px;

  .recently-list-container {
    width: fit-content;
    min-width: 250px;
    max-width: 300px;
    height: 100%;
    overflow: scroll;

    .chat-item {
      width: calc(100% - 10px);
      height: 70px;
      margin: 10px 10px 10px 0;
      padding: 10px 14px;
      display: flex;
      flex-direction: row;
      overflow: hidden;
      border-radius: 4px;
      border-left: 4px solid transparent;
      background-color: #fff;
      cursor: pointer;
      transition-property: background-color, border;
      transition-duration: 300ms;

      .name-and-message {
        width: 100%;
        height: 100%;
        margin: 0 12px;
        display: flex;
        flex-direction: column;
        overflow: hidden;

        .username {
          width: 100%;
          height: 50%;
          line-height: 28px;
          font-size: 14px;
          font-weight: bold;
          color: #555;
        }

        .message {
          width: 100%;
          height: 50%;
          line-height: 22px;
          font-size: 12px;
          color: #aaa;
          white-space: nowrap;
          overflow: hidden;
          text-overflow:ellipsis;
        }
      }

      .time-and-status {
        width: fit-content;
        height: 100%;
        flex-shrink: 0;
        margin-left: auto;

        .time {
          width: 100%;
          height: 50%;
          line-height: 25px;
          font-size: 10px;
          color: #aaa;
        }

        .read-status {
          width: 100%;
          height: 50%;
        }
      }
    }

    .chat-item:hover {
      background-color: #f1f1f1;
    }

    .chat-item__selected {
      border-left: 4px solid #ff7456;
      background-color: #eee;
    }
  }

  .chat-container {
    width: 100%;
    height: 100%;
  }
}